home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / linux-bo / dless-li / root.no / etc / inittab < prev    next >
Text File  |  1995-04-28  |  2KB  |  64 lines

  1. #
  2. # inittab    This file describes how the INIT process should set up
  3. #        the system in a certain run-level.
  4. #
  5. # Version:    @(#)inittab        2.04    17/05/93    MvS
  6. #
  7. # Author:    Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
  8. #
  9. # Default runlevel.
  10. id:5:initdefault:
  11.  
  12. # System initialization (runs when system boots).
  13. si:S:sysinit:/etc/rc.d/rc.S
  14.  
  15. # Script to run when going single user.
  16. su:S:wait:/etc/rc.d/rc.K
  17.  
  18. # Script to run when going multi user.
  19. rc:123456:wait:/etc/rc.d/rc.M
  20.  
  21. # What to do at the "Three Finger Salute".
  22. ca::ctrlaltdel:/sbin/shutdown -t3 -rf now
  23.  
  24. # What to do when power fails (shutdown to single user).
  25. pf::powerfail:/sbin/shutdown -f +5 "THE POWER IS FAILING"
  26.  
  27. # If power is back before shutdown, cancel the running shutdown.
  28. pg:0123456:powerokwait:/sbin/shutdown -c "THE POWER IS BACK"
  29.  
  30. # If power comes back in single user mode, return to multi user mode.
  31. ps:S:powerokwait:/sbin/init 5
  32.  
  33. # The getties in multi user mode on consoles an serial lines.
  34. #
  35. # NOTE NOTE NOTE adjust this to your getty or you will not be
  36. #                able to login !!
  37. #
  38. # Note: for 'agetty' you use linespeed, line.
  39. # for 'getty_ps' you use line, linespeed and also use 'gettydefs'
  40. c1:12345:respawn:/sbin/agetty 38400 tty1
  41. c2:12345:respawn:/sbin/agetty 38400 tty2
  42. #c3:45:respawn:/sbin/agetty 38400 tty3
  43. #c4:45:respawn:/sbin/agetty 38400 tty4
  44. #c5:45:respawn:/sbin/agetty 38400 tty5
  45. #c6:456:respawn:/sbin/agetty 38400 tty6
  46.  
  47. # Serial lines
  48. #s1:45:respawn:/sbin/agetty 19200 ttyS0
  49. #s2:45:respawn:/sbin/agetty 19200 ttyS1
  50.  
  51. # Dialup lines
  52. #d1:45:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS0
  53. #d2:45:respawn:/sbin/agetty -mt60 38400,19200,9600,2400,1200 ttyS1
  54.  
  55. # Runlevel 6 used to be for an X-window only system, until we discovered
  56. # that it throws init into a loop that keeps your load avg at least 1 all 
  57. # the time. Thus, there is now one getty opened on tty6. Hopefully no one
  58. # will notice. ;^)
  59. # It might not be bad to have one text console anyway, in case something 
  60. # happens to X.
  61. x1:6:wait:/etc/rc.d/rc.6
  62.  
  63. # End of /etc/inittab
  64.